﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SGRapidForm.Common;

namespace SGDemo.Web
{
    public partial class Start : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSelectA_OnClick(object sender, EventArgs e)
        {
            this.Session.Clear();
            ApplicationContext.Current.SessionID = this.Session.SessionID;
            ApplicationContext.Current.UserKeyid = "AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA";
            ApplicationContext.Current.UserName = "admin";
            ApplicationContext.Current.RealName = "超级管理员";
            ApplicationContext.Current.DeptKeyid = "CDF3099B-FDCA-4A24-88DC-ADD984332245";
            ApplicationContext.Current.DeptCode = "01";
            ApplicationContext.Current.DeptName = "辉煌总公司";
            ApplicationContext.Current.Email = "admin@service.com";
            ApplicationContext.Current.MobilePhone = "13616001600";

            ApplicationContext.Current.CurrentDeptKeyid = "CDF3099B-FDCA-4A24-88DC-ADD984332245";
            ApplicationContext.Current.CurrentDeptCode = "01";
            ApplicationContext.Current.CurrentDeptName = "辉煌总公司";
            ApplicationContext.Current.CurrentDeptType = "0";

            this.Response.Redirect("Main.aspx", true);
        }

        protected void btnSelectB_OnClick(object sender, EventArgs e)
        {
            this.Session.Clear();
            ApplicationContext.Current.SessionID = this.Session.SessionID;
            ApplicationContext.Current.UserKeyid = "3CE68875-FFCC-4322-ABA4-6639E70AB59D";
            ApplicationContext.Current.UserName = "xmzb";
            ApplicationContext.Current.RealName = "肖梅";
            ApplicationContext.Current.DeptKeyid = "CDF3099B-FDCA-4A24-88DC-ADD984332245";
            ApplicationContext.Current.DeptCode = "0104";
            ApplicationContext.Current.DeptName = "总经理办公室";
            ApplicationContext.Current.Email = "xiaomei@service.com";
            ApplicationContext.Current.MobilePhone = "15960809870";

            ApplicationContext.Current.CurrentDeptKeyid = "F738AC68-9084-4126-1136-1F207F2B42E3";
            ApplicationContext.Current.CurrentDeptCode = "0142";
            ApplicationContext.Current.CurrentDeptName = "海南分公司";
            ApplicationContext.Current.CurrentDeptType = "0";

            this.Response.Redirect("Main.aspx", true);
        }
    }
}